Skip to content

Move documentation publishing to the current site - #1313

Merged
zlareb1 merged 31 commits into
ClickHouse:mainfrom
Blargian:codex/docs-layout-dark
Dec 3, 2026
Merged

zlareb1 merged 31 commits into
ClickHouse:mainfrom
Blargian:codex/docs-layout-dark

Conversation

@Blargian

@Blargian Blargian commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Documentation (changelog entry is not required)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

Not required.

Why

The documentation site uses a dark first-visit theme and a wider reading column. Published links, package metadata, and publishing automation still point at the retired site. This change moves those references to the current site.

Scope and risk

This changes the documentation theme defaults, public documentation URLs, package metadata, and publishing automation. It removes the retired publisher and repository-level llms.txt generator, removes an unused workflow write permission, and makes translation finalization build the current documentation site. The site generates llms.txt and llms-full.txt. It does not change server behavior, stored data, authorization, or plugin behavior.

It also converts numbered procedure sections in the English source pages to Steps and
Step components. Content preparation promotes only component-bearing pages to MDX,
escapes uppercase placeholders that MDX would parse as tags, and keeps step markers white
with a higher-contrast connector. Machine-translated pages remain unchanged. A
misclassified page could fail the MDX build, which the complete docs build covers.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: revert this change to restore the prior theme defaults and publisher.

Tests

  • make format
  • make lint
  • make typecheck
  • python -m pytest tests/unit/test_docs_site_indexnow.py tests/unit/test_published_links.py tests/unit/test_i18n.py tests/unit/test_i18n_lifecycle.py tests/unit/test_i18n_automation.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q
  • python -m pytest tests/unit/test_docs_reference.py tests/unit/test_page_summary.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py tests/unit/test_i18n.py tests/unit/test_docs_site_hooks.py -q
  • LOOM_ENV_FILE= .venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q — 276 passed.
  • node --test docs/scripts/prepare-content.test.mjs
  • npm --prefix docs run build

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Codex; checked the link replacement, workflow removal, Steps component markup, rendered preview, test changes, and documentation build.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

Note

Low Risk
Changes are limited to documentation build, CI, and public doc URLs; server runtime, auth, and data paths are untouched.

Overview
Moves documentation publishing from the retired MkDocs + GitHub Pages pipeline to the Blume stack in docs/: CI’s docs-site workflow now runs npm test in docs/ instead of mkdocs build --strict and drops the Pages build/deploy jobs, while i18n finalize validates merges with npm --prefix docs run build instead of MkDocs.

Content prep and rendering gains procedure handling: numbered ## N. … sections become <Steps> / <Step> MDX, pages with components are promoted to .mdx, uppercase placeholders are escaped for MDX, and stale/removed English source notices are injected into translated pages. llms.txt is removed from the repo root and docs_reference.py no longer generates it—the site build is documented as the source of llms.txt / llms-full.txt. Large scripts/docs_site/ MkDocs hooks, locale theme overrides, redirect builder, and related tests are deleted; IndexNow and README translation links lean on scripts/i18n/site.py.

Docs and contributor guides are updated for Blume URLs, simplified internal links, and docs/theme.css tweaks (dark tokens, prose measure, step styling). Node engine pin bumps to >=22.23.4.

Reviewed by Cursor Bugbot for commit b187c09. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 3, 2026 11:03am UTC
loom-telemetry Ready Ready Preview Dec 3, 2026 11:03am UTC

Request Review

@Blargian
Blargian force-pushed the codex/docs-layout-dark branch from cc9fc83 to 70b3f88 Compare November 24, 2026 12:45
@Blargian Blargian changed the title Documentation site uses a static build Documentation defaults to dark with a wider reading column Nov 24, 2026
@Blargian
Blargian marked this pull request as ready for review November 24, 2026 12:49
@Blargian Blargian changed the title Documentation defaults to dark with a wider reading column Move documentation publishing to the current site Nov 24, 2026
@Blargian
Blargian marked this pull request as draft November 24, 2026 13:27
@zlareb1 zlareb1 self-assigned this Nov 24, 2026
zlareb1
zlareb1 previously approved these changes Nov 24, 2026
@Blargian
Blargian marked this pull request as ready for review November 24, 2026 14:44
@Blargian

Copy link
Copy Markdown
Member Author

@zlareb1 Any reason to keep llms.txt and llms-full.txt in the repo? These get generated automatically now at https://loom.clickhouse.com/docs/llms.txt and https://loom.clickhouse.com/docs/llms-full.txt

@Blargian

Blargian commented Nov 24, 2026 •

Copy link
Copy Markdown
Member Author

I'll need to ask you to update this link here as well:

Screenshot 2026-11-24 at 15 45 44

I had requested maintainer access only for 12 hours so don't have access anymore

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The retained MkDocs configuration still runs a hook that requires a deleted file. The locale edits also leave edited generated pages stamped with their old source revision.

Comment thread mkdocs.yml Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python SDK snapshot and code.read scope-classification failures reproduce on this PR’s merge and on clean main. Both assertions pass with the tracked repair. Failed job · Repair #1293

@zlareb1

zlareb1 commented Nov 24, 2026

Copy link
Copy Markdown
Member

@Blargian yes, can be removed in this PR

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The HTTP contract failure reproduces on clean main. The repair collects the transport before Hypothesis draws inputs. The HTTP contract workflow on the repair merge passed. Failed job · Repair #1325.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The publisher hooks and generated translation page edits are removed. The repository guide fails the required format check on this head.

Comment thread docs/development/repository-guide.md Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code.edit_context SDK snapshot, MCP primer, and read-scope failures reproduce on this PR's CI merge commit and on clean main before the repair. All five focused tests pass locally on the merged repair. Failed unit job · Repair #1328.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prior format failure is fixed. The same four focused translation and release-link assertions pass on clean main and fail with the changed Markdown. The translation merge job also builds generated locale pages as MDX with write credentials.

Comment thread scripts/i18n/automation.py Resolved
Comment thread docs/getting-started/quickstart.md Resolved
Comment thread docs/getting-started/agent-setup.md Resolved
Comment thread docs/development/documentation-style.md Resolved
Comment thread llms.txt Resolved
@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

@Blargian is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source headings keep their release links. The generated site still drops the Quickstart anchor, omits the notice for retained translations of removed pages, and sends translated readers to the retired full index.

GitHub reports a conflict with main in .github/workflows/docs-site.yml, docs/index.md, and six other files. Resolve the conflicts against main.

Comment thread docs/scripts/prepare-content.mjs Resolved
Comment thread docs/scripts/prepare-content.mjs Resolved
Comment thread docs/scripts/prepare-content.mjs Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub reports merge conflicts with main in 12 files, including .github/workflows/docs-site.yml, docs/scripts/prepare-content.mjs, and mkdocs.yml. Please rebase the branch and resolve the conflicts.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translated indexes link to the current full index. Two findings remain on this head. The prepared Agent setup page still links to the Quickstart fragment dropped by Steps, and a stamped translation with a removed English source still renders without the documented notice. The 20 content-preparation tests pass.

Quickstart anchor · Removed-source notice

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous CI run’s lesson lookup limit, memory.for_file analyzer, and ClickHouse 26.11 test storage failures reproduce on that run’s base without the publishing changes. The focused checks pass on the merged fix.

Previous CI run · Merged fix

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The built Quickstart preserves the linked step IDs, and retained translations of removed pages show a standalone notice. The docs build and all 22 content-preparation tests pass.

@zlareb1

zlareb1 commented Nov 25, 2026

Copy link
Copy Markdown
Member

@Blargian plz fix merge conflict

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub reports merge conflicts with main in llms.txt and tests/unit/test_docs_site_indexnow.py. The branch deletes both files and main modifies them. Please rebase and resolve those deletions against the publishing change.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep production URL submission when retiring the legacy publisher. The retained scripts/docs_site/redirect_pages.py:12 also imports _TOKEN from the deleted scripts/docs_site/hooks.py. Remove that orphaned script and its fragment manifest if the redirect publisher is retired.

Comment thread .github/workflows/docs-site.yml Resolved
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>

# Conflicts:
#	llms.txt
@Blargian

Blargian commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Fixed in d483395: merged main and retained the documented removal of the repository llms.txt; all references use the generated documentation files. The combined tree passes 26 content-preparation tests, 281 documentation-link tests, and 6 public-copy tests.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conflict is resolved. The first-paint finding remains open. The server-rendered dark page still needs its foreground and background tokens before the theme script runs.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type gate rejects the streamed SCIP header adapter's dynamic annotation. The same error reproduces on clean main. Repair #1915 uses the model field annotation and keeps the header bounds.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dashboard Vitest shard fails on the same tooltip assertions on this PR and on clean main. Radix includes the tooltip ID in aria-describedby even when it repeats the button's name. The repair keeps the accessible name and removes the duplicate description. PR job · Clean main job · Merged repair · Passing main job

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first-paint finding remains on this head. The merge from upstream leaves the theme selector unchanged. With JavaScript disabled or blocked, the dark page background renders before the browser sets data-theme, so the light foreground override never applies. Apply the dark tokens by default until light mode is explicitly selected.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
@Blargian

Blargian commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Fixed in 6dd141c: documentation dark tokens apply until data-theme or data-cui-theme explicitly selects light, covering the server-rendered first paint. docs/theme.test.mjs covers the selector; the documentation build and all 27 focused tests pass.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
@Blargian

Blargian commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Fixed in 9fc66d6: the docs package runs its Node tests, including the first-paint theme regression, before both site builds and strict validation. npm --prefix docs test passes 33 tests, and npm --prefix docs run build passes.

Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
@Blargian

Blargian commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Fixed in 52031d2: the docs-site workflow now runs npm test on matching pull requests, so the first-paint regression is a CI gate. The job installs locked docs dependencies; npm --prefix docs test passes 33 tests.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dark first-paint fallback is fixed and the docs test job passed. The translation finalizer uses an older Node version than the documentation build supports.

Comment thread .github/workflows/i18n.yml Resolved
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>

# Conflicts:
#	llms.txt
@Blargian
Blargian requested a review from zlareb1 December 1, 2026 18:04
zlareb1
zlareb1 previously approved these changes Dec 1, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translation finalizer, docs test job, manifest and lockfile agree on Node 22.23.4. That satisfies the locked Astro engine, and the docs test job passed on this head.

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub reports a merge conflict on this head. The branch deletes llms.txt and main modifies it. Please resolve the file conflict so CI can test the combined tree.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 3868b16. Configure here.

Comment thread .github/workflows/i18n.yml Resolved

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current head can miss IndexNow submissions for a translation merge or an adoption-page update. The documentation checks passed.

Comment thread scripts/i18n/automation.py Resolved
Comment thread scripts/docs_site/indexnow.py Resolved
Signed-off-by: Shaun Struwig <41984034+Blargian@users.noreply.github.com>
zlareb1
zlareb1 previously approved these changes Dec 2, 2026

@zlareb1 zlareb1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The finalizer retries a missed submission while the next batch waits for CI. Both adoption inputs trigger URL submission, and the finalizer allows 20 minutes. All 16 focused tests passed.

@Blargian

Blargian commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

@zlareb1 All checks are green on 90a9a10. Can we merge this pull request?

llms.txt stays deleted: the site build generates it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@zlareb1
zlareb1 merged commit b973671 into ClickHouse:main Dec 3, 2026
73 of 117 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants